#!/usr/bin/env bash

rm -rf emgutf.bundle
mkdir emgutf.bundle
mkdir emgutf.bundle/Contents
mkdir emgutf.bundle/Contents/MacOS
mkdir emgutf.bundle/Contents/Resources
cp ../../lib/osx/libtfextern.dylib emgutf.bundle/Contents/MacOS/
cp ../../lib/osx/libtensorflow_framework.dylib emgutf.bundle/Contents/MacOS/
cp Info.plist emgutf.bundle/Contents/
iconutil -c icns icons.iconset/
cp icons.icns emgutf.bundle/Contents/Resources/